/**
 * 
 * 
 */
; 
+function() {
	window.jsonpDropList = function(ele) {
		this.ele = ele;
	}
	
	var _serchInput = document.getElementsByClassName('search-input')[0];
	_serchInput.addEventListener('keyup', searchJsonp.bind(_serchInput));

	function searchJsonp() {
		var _script = document.createElement('script');
		_script.src = "http://suggestion.baidu.com/su?wd=" + this.value + "&cb=searchItem";
		document.body.appendChild(_script);
	}

}();

function searchItem(str) {
	var _searchUl = document.getElementsByClassName('search-ul')[0].children[0];
	for(var i = 0; i < str.s.length; i++) {
		var _li = document.createElement('li');
		_li.innerText = str.s[i];
		_searchUl.appendChild(_li);
	}
	_searchUl.parentElement.style.display = "block";
	_searchUl.addEventListener('click',function() {

	});

}